package com.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Order {

  private long id;
  private String orderNum;
  private String payOrderNum;
  private double orderAmount;
  private long invoice;
  private String invoiceTitle;
  private String orderRemark;
  private String addressId;
  private long userId;
  private long ispay;
//  @DateTimeFormat(pattern = "yyyy-MM-dd")
  @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss",timezone = "CMT+8")
  private Date supportDate;
  private OrderProject orderProject;

  public OrderProject getOrderProject() {
    return orderProject;
  }

  public void setOrderProject(OrderProject orderProject) {
    this.orderProject = orderProject;
  }

  public Order() {
  }

  public Order(long id, String orderNum, String payOrderNum, double orderAmount, long invoice, String invoiceTitle, String orderRemark, String addressId, long userId, long ispay, Date supportDate) {
    this.id = id;
    this.orderNum = orderNum;
    this.payOrderNum = payOrderNum;
    this.orderAmount = orderAmount;
    this.invoice = invoice;
    this.invoiceTitle = invoiceTitle;
    this.orderRemark = orderRemark;
    this.addressId = addressId;
    this.userId = userId;
    this.ispay = ispay;
    this.supportDate = supportDate;
  }

  public long getUserId() {
    return userId;
  }

  public void setUserId(long userId) {
    this.userId = userId;
  }

  public long getId() {
    return id;
  }

  public void setId(long id) {
    this.id = id;
  }


  public String getOrderNum() {
    return orderNum;
  }

  public void setOrderNum(String orderNum) {
    this.orderNum = orderNum;
  }


  public String getPayOrderNum() {
    return payOrderNum;
  }

  public void setPayOrderNum(String payOrderNum) {
    this.payOrderNum = payOrderNum;
  }


  public double getOrderAmount() {
    return orderAmount;
  }

  public void setOrderAmount(double orderAmount) {
    this.orderAmount = orderAmount;
  }


  public long getInvoice() {
    return invoice;
  }

  public void setInvoice(long invoice) {
    this.invoice = invoice;
  }


  public String getInvoiceTitle() {
    return invoiceTitle;
  }

  public void setInvoiceTitle(String invoiceTitle) {
    this.invoiceTitle = invoiceTitle;
  }


  public String getOrderRemark() {
    return orderRemark;
  }

  public void setOrderRemark(String orderRemark) {
    this.orderRemark = orderRemark;
  }


  public String getAddressId() {
    return addressId;
  }

  public void setAddressId(String addressId) {
    this.addressId = addressId;
  }


  public long getIspay() {
    return ispay;
  }

  public void setIspay(long ispay) {
    this.ispay = ispay;
  }


  public Date getSupportDate() {
    return supportDate;
  }

  public void setSupportDate(Date supportDate) {
    this.supportDate = supportDate;
  }

}
